package com.pxmeta.skill.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pxmeta.party.entity.vo.SearchUserVO;
import com.pxmeta.party.entity.vo.UserSkillVO;
import com.pxmeta.skill.entity.UserSkill;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserSkillMapper extends BaseMapper<UserSkill> {


    List<SearchUserVO> searchUsers(@Param("page") Page<SearchUserVO> page, @Param("keyword") String keyword);

    @Select("SELECT DISTINCT user_id from kt_user_skill where skill_id = #{skillId};")
    List<Long> getAllUserIds(@Param("skillId") Integer skillId);
}
